<%@ Page Language="C#" AutoEventWireup="true" CodeFile="News_List.aspx.cs" ValidateRequest="false" Inherits="Admin_ListNews" %>

<%@ Register Src="~/Template/uc_Admin_Header.ascx"TagName="uc_Header" TagPrefix="uc1" %>
<%@ Register Src="~/Template/uc_Admin_Menu.ascx" TagName="uc_Menu" TagPrefix="uc2" %>
<%@ Register Src="~/Template/uc_Admin_Footer.ascx" TagName="uc_Footer" TagPrefix="uc3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="hd_Admin_News_list" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>CONTROL PANEL TACO WEBSITE</title>
    <link rel="stylesheet" type="text/css" href="../Template/Admin/style/default.css" />
    <script language="JavaScript" src="../Template/Admin/javascript/common.js"></script>
    <script language="JavaScript" src="../Template/Admin/javascript/CalendarPopup.js"></script>
    <script type="text/javascript">
        document.onselectstart = new Function("return false");
        document.write(getCalendarStyles());
    </script>

</head>
<body class="bg_image">
    <form id="frm_News_List" runat="server">
        <uc1:uc_Header ID="Uc_Header1" runat="server" />
        <table id="main">
            <tr>
                <td id="left-col">
                    <uc2:uc_Menu ID="Uc_Menu2" runat="server" />
                </td>
                <td id="main-col">
                    <div id="category">
                        <font color="#cc0000"><b>
                            <asp:Literal ID="lit_Header" runat="server" Text="<%$ Resources:Default, mnu_News_List %>"></asp:Literal>
                        </b></font>
                    </div>
                    <br />
                    <table style="width: 100%" align="left">                         
                        <tr>
                            <td>
                                <asp:Literal ID="lit_Active" runat="server" Text="<%$ Resources:Default, frm_Active %>"></asp:Literal></td>
                            <td>
                               <asp:DropDownList ID="ddl_Search_Active" runat="server">
                                    <asp:ListItem Text="<%$ Resources:Default, frm_Active %>"></asp:ListItem>
                                    <asp:ListItem Text="<%$ Resources:Default, frm_Active_True %>" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="<%$ Resources:Default, frm_Active_False %>" Value="0"></asp:ListItem>
                               </asp:DropDownList>
                            </td>
                        </tr>
                         <tr>
                            <td>
                            </td>
                            <td>
                                <asp:Button ID="btn_Search" runat="server" Text="<%$ Resources:Default, btn_Search %>"
                                    BorderStyle="Dotted" onclick="btn_Search_Click" />
                                <asp:Button ID="btn_Return" runat="server" Text="<%$ Resources:Default, btn_Return %>"
                                    OnClientClick="javascript:window.history.go(-1);return false;" BorderStyle="Dotted" />
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 26px;" colspan="2">
                                &nbsp;
                                <asp:GridView ID="gv_Search" runat="server" AutoGenerateColumns="False" BackColor="White"
                                    BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataKeyNames="News_ID"
                                    ForeColor="Black" GridLines="Vertical" Height="10px" OnRowDeleting="gv_Search_RowDeleting"
                                    OnRowUpdating="gv_Search_RowUpdating" Width="100%" AllowPaging="True" OnPageIndexChanging="gv_Search_PageIndexChanging"
                                    OnRowCreated="gv_Search_RowCreated">
                                    <FooterStyle BackColor="#CCCC99" />
                                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                                    <Columns>
                                        <asp:TemplateField Visible="False">
                                            <ItemTemplate>
                                                <asp:Label ID="lbl_News_ID" runat="server" Text='<%# Eval("News_ID") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Default, gv_News_CreateDate %>">
                                            <ItemTemplate>
                                                <asp:Label ID="lbl_News_CreateDate" runat="server" Text='<%# Eval("News_CreateDate") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Default, gv_News_Content %>">
                                            <ItemTemplate>
                                                <asp:Label ID="lbl_News_Content" runat="server" Text='<%# Eval("News_Content") %>'></asp:Label>
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>                                      
                                        <asp:TemplateField HeaderText="<%$ Resources:Default, gv_News_Active %>">
                                            <ItemTemplate>
                                                <asp:CheckBox ID="lbl_News_Active" runat="server" Checked='<%# Eval("News_Active") %>'>
                                                </asp:CheckBox>
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" Width="10%" />
                                            <HeaderStyle HorizontalAlign="Center" Width="10%" />
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:ImageButton ID="img_Update" runat="server" CommandName="Update" ImageUrl="../Template/Admin/images/edit.gif" />
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemTemplate>
                                                <asp:ImageButton ID="img_Delete" runat="server" CommandName="Delete" ImageUrl="../Template/Admin/images/delete.gif" />
                                            </ItemTemplate>
                                            <HeaderStyle HorizontalAlign="Center" Width="5%" />
                                            <ItemStyle HorizontalAlign="Center" Width="5%" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <AlternatingRowStyle BackColor="White" />
                                    <RowStyle BackColor="#F7F7DE" />
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <uc3:uc_Footer ID="uc_Footer_frm" runat="server" />
    </form>
</body>
</html>
